// JavaScript Document
function notEmptys(elem, helperMsg){

	if(elem.value.length == 0){
	document.getElementById("fg").innerHTML=helperMsg;
		elem.focus(); // set the focus to this input
		return false;
	}
	return true;
}






function notEmpty(elem, helperMsg){

	if(elem.value.length == 0){
	document.getElementById("er").innerHTML=helperMsg;
		elem.focus(); // set the focus to this input
		return false;
	}
	return true;
}



	function clearx()
{
	
	 document.getElementById("myForm").reset(); 
     document.getElementById("er").innerHTML="";
	
}